summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-10-30 05:03:53 +0100
committerGitHub <noreply@github.com>2022-10-30 05:03:53 +0100
commit316a2c1715b8b22f4320cde82878ba10657c48e7 (patch)
tree33f9a83bc191a307de7f235e2afdc2d2ac7ea406
parentMerge pull request #9137 from liamwhite/hbmenu (diff)
parentk_server_session: fix crashes (diff)
downloadyuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.tar
yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.tar.gz
yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.tar.bz2
yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.tar.lz
yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.tar.xz
yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.tar.zst
yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.zip
-rw-r--r--src/core/hle/kernel/k_server_session.h2
-rw-r--r--src/core/hle/service/sm/sm.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_server_session.h b/src/core/hle/kernel/k_server_session.h
index 32135473b..188aef4af 100644
--- a/src/core/hle/kernel/k_server_session.h
+++ b/src/core/hle/kernel/k_server_session.h
@@ -91,7 +91,7 @@ private:
/// List of threads which are pending a reply.
boost::intrusive::list<KSessionRequest> m_request_list;
- KSessionRequest* m_current_request;
+ KSessionRequest* m_current_request{};
KLightLock m_lock;
};
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp
index 48e70f93c..e2b8d8720 100644
--- a/src/core/hle/service/sm/sm.cpp
+++ b/src/core/hle/service/sm/sm.cpp
@@ -80,7 +80,6 @@ ResultVal<Kernel::KPort*> ServiceManager::GetServicePort(const std::string& name
}
auto* port = Kernel::KPort::Create(kernel);
- SCOPE_EXIT({ port->Close(); });
port->Initialize(ServerSessionCountMax, false, name);
auto handler = it->second;